home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-02-26 | 2.7 KB | 101 lines | [TEXT/KAHL] |
- /* zButtons.cp -- window methods */
- /* Created 2/25/97 10:03 PM by AppMaker */
-
- /* We recommend that you not modify this module and instead modify */
- /* its subclass, Buttons. The 'z' prefix on this module marks */
- /* a module which is likely to be regenerated by AppMaker after you */
- /* make changes to the user interface. The modules without the 'z' */
- /* prefix will not be regenerated by AppMaker unless you delete them. */
- /* Using a separate subclass to override the AppMaker-generated code */
- /* lets you regenerate code without losing your hand-coded changes. */
-
- #include <Commands.h>
- #include <Constants.h>
- #include <Global.h>
- #include <CBartender.h>
- #include <CDecorator.h>
- #include <CDesktop.h>
- #include <CDirector.h>
- #include <CError.h>
- #include <CSizeBox.h>
- #include <TBUtilities.h>
- #include <CAMButton.h>
- #include <CAMCheckBox.h>
- #include <CAMRadioControl.h>
- #include "CmdCodes.h"
- #include "GadgetsData.h"
- #include "zButtons.h"
-
- #define ButtonsID 1000 /* resource ID for WIND template */
-
- extern CBartender *gBartender; /* The menu handling object */
- extern CDecorator *gDecorator; /* Window dressing object */
- extern CDesktop *gDesktop; /* The enclosure for all windows */
- extern CError *gError; /* The error handling object */
-
- /*----------*/
- void ZButtons::IZButtons (CDirector *aSupervisor)
- {
- CView *enclosure;
- CBureaucrat *supervisor;
- CSizeBox *aSizeBox;
-
- IWindow (ButtonsID, FALSE, gDesktop, aSupervisor);
-
- enclosure = this;
- supervisor = this;
-
-
- itsOKButton = new CAMButton;
- itsOKButton->IViewRes ('CtlP', 1001, enclosure, supervisor);
-
- itsX3DButton = new CAMButton;
- itsX3DButton->IViewRes ('CtlP', 1002, enclosure, supervisor);
-
- itsPictButtonButton = new CAMButton;
- itsPictButtonButton->IViewRes ('CtlP', 1003, enclosure, supervisor);
-
- itsTitledPictButton = new CAMButton;
- itsTitledPictButton->IViewRes ('CtlP', 1004, enclosure, supervisor);
-
- itsCheckCheck = new CAMCheckBox;
- itsCheckCheck->IViewRes ('CtlP', 1005, enclosure, supervisor);
-
- itsX3DRadioRadio = new CAMRadioControl;
- itsX3DRadioRadio->IViewRes ('CtlP', 1006, enclosure, enclosure);
-
- itsPictCheckCheck = new CAMCheckBox;
- itsPictCheckCheck->IViewRes ('CtlP', 1007, enclosure, supervisor);
-
- itsX3DCheckCheck = new CAMCheckBox;
- itsX3DCheckCheck->IViewRes ('CtlP', 1008, enclosure, supervisor);
-
- itsMainPane = NULL;
-
- aSizeBox = new CSizeBox;
- aSizeBox->ISizeBox (enclosure, supervisor);
-
- } /* IZButtons */
-
- /*----------*/
- void ZButtons::UpdateMenus (void)
- {
- inherited::UpdateMenus ();
-
-
- } /* UpdateMenus */
-
- /*----------*/
- void ZButtons::DoCommand (long theCommand)
- {
- switch (theCommand) {
-
- default:
- inherited::DoCommand (theCommand);
- break;
- } /* switch */
-
- } /* DoCommand */
-
- /* zButtons.cp */
-